<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePatentApplyRemarksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('patent_apply_remarks', function (Blueprint $table) {
            $table->id();
            $table->integer('patent_apply_id')->comment('申请前登记表ID');
            $table->string('name')->comment('备注名称');
            $table->integer('user_id')->comment('操作人');
            $table->text('remark')->nullable()->comment('备注被人');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('patent_apply_remarks');
    }
}
